package com.olocat.cjx.nsims.service

import com.olocat.cjx.nsims.pojo.personnel.User

interface UserService {
    fun login(username: String, password: String): User?
    fun getByTelephone(telephone: String): User?
    fun getById(id: String): User?
    fun editPassword(id: String, old: String, new: String): Boolean
    fun updateEmailById(id: String, email: String)
    fun updateTelephonById(id: String, telephone: String)
    fun save(user: User)
    fun saveDoctorUser(user: User)
    fun saveNurseUser(user: User)
    fun editUsername(id: String, username: String)
}